package de.unifa.elostplugin.gui.wizards.pages;

import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.layout.GridData;

import de.unifa.elostplugin.gui.wizards.BuildWizard;
import de.unifa.elostplugin.gui.wizards.beans.BuildBeanData;

public class BuildPageTrunktag2Branch extends WizardPage{
	
	private BuildBeanData data = null;
	private Text text;
	private Text text_1;

	/**
	 * Create the wizard.
	 */
	public BuildPageTrunktag2Branch() {
		super("wizardPage");
		setTitle("Trunktag2Branch");
		setDescription("Erzeugen eines neuen Branches aus dem \u201ETrunk-Tag\u201C.");
		data = ((BuildWizard)this.getWizard()).getData();
	}

	/**
	 * Create contents of the wizard.
	 * @param parent
	 */
	public void createControl(Composite parent) {
		
		data = ((BuildWizard)this.getWizard()).getData();
		Composite container = new Composite(parent, SWT.NULL);

		setControl(container);
		container.setLayout(new FillLayout(SWT.VERTICAL));
		
		Group group = new Group(container, SWT.NONE);
		group.setText("SVN-Daten");
		GridLayout gl_group = new GridLayout(2, false);
		gl_group.marginTop = 15;
		gl_group.marginLeft = 30;
		group.setLayout(gl_group);
		
		Label label = new Label(group, SWT.NONE);
		label.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
		label.setText("SVN Benutzer");
		
		text = new Text(group, SWT.BORDER);
		text.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));
		
		Label label_1 = new Label(group, SWT.NONE);
		label_1.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
		label_1.setText("SVN Passwort");
		
		text_1 = new Text(group, SWT.BORDER);
		text_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));
		
		Group group_1 = new Group(container, SWT.NONE);
		group_1.setText("Versionsdaten");
	}

}
